package com.kchouse.Alipay;

import android.content.pm.PackageManager;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;

import com.kchouse.Manifest;

public class Alipayapi extends AppCompatActivity {

    /**
     * 用于支付宝支付业务的入参 app_id。
     */
    public static final String APPID = "2018121362517727";

    /**
     * 用于支付宝账户登录授权业务的入参 pid。
     */
    public static final String PID = "";

    /**
     * 用于支付宝账户登录授权业务的入参 target_id。
     */
    public static final String TARGET_ID = "";

    /**
     *  pkcs8 格式的商户私钥。
     *
     * 	如下私钥，RSA2_PRIVATE 或者 RSA_PRIVATE 只需要填入一个，如果两个都设置了，本 Demo 将优先
     * 	使用 RSA2_PRIVATE。RSA2_PRIVATE 可以保证商户交易在更加安全的环境下进行，建议商户使用
     * 	RSA2_PRIVATE。
     *
     * 	建议使用支付宝提供的公私钥生成工具生成和获取 RSA2_PRIVATE。
     * 	工具地址：https://doc.open.alipay.com/docs/doc.htm?treeId=291&articleId=106097&docType=1
     */
    public static final String RSA2_PRIVATE = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCOGd9569YwZgTMSPvFk30FNqeeSJgVrzkx5ygTLL8PDPGTre4PJKDU/2tYh5ImeyJNjRPxGVjCla20L7oJuHwpN7X0fQFNbgGh0E+BztiqUtmxkv7m95Q2XkSti8ZMusG3zkY27cDEfP+ZEA7vl/29YtFjKGGdOPbKv9E7zl7ey1w8OoxECVxIvS8qraJGq0d4mA1V+LryTzx1oxaWgCkiCTqTkxAq6LyYWPxxpQHG3QaW9JS9rGgwVdYcypaL6Ripf4yEM5HJrJyufR781Vf1FpsKEJIxi3C5UhpA38g9sHgKeJcgevCYSavT65Wxle2kDjUR6Qhi2nb6RVSpxi9fAgMBAAECggEAY3OSJzc6KZdM5lhx9P5bMknlF+9AmXSP9/AK6RiZAwSREkVZZjnBYjD8xPHlBI+LG3GQMl4F8/Fjp8b7UhBOvV4jN2BBiBpkhAZRjszgcJwZhaEWSzmc/kwNjtRTTaI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final String RSA2_PRIVATE = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkA8HaqHHqC3mpv19hhePy1kHaXezNahPQOjiTMZ9sL85RbH1JMnSRd0BwpMgHKI5f/RiDTF3HkzlRGrkwKMIpWlWrtdhGsAWWGQ+oicuzTMSphE6syLWxKIRCnoHVSmsu6jczZbVp9TIhL9VJPI4Q08PGE1tcgG2WveS9We3Qd2exF3RlUP4o8Va5G3Ofisu5Ghy9U464iv0mhA+U/vG1lazP8HLDhSh19u9I0pTPHpHSCFvjHxZ0iy1pfAgNp5oGG0NrnHbkuPt3/OqtNvJr7lA5QpNIxu05G6CdBMPEGw+gqK4zOTwWIi98r99yBywfwiwF0zqQEDaCHwtd6H/lQIDAQAB";
    public static final String RSA_PRIVATE = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkA8HaqHHqC3mpv19hhePy1kHaXezNahPQOjiTMZ9sL85RbH1JMnSRd0BwpMgHKI5f/RiDTF3HkzlRGrkwKMIpWlWrtdhGsAWWGQ+oicuzTMSphE6syLWxKIRCnoHVSmsu6jczZbVp9TIhL9VJPI4Q08PGE1tcgG2WveS9We3Qd2exF3RlUP4o8Va5G3Ofisu5Ghy9U464iv0mhA+U/vG1lazP8HLDhSh19u9I0pTPHpHSCFvjHxZ0iy1pfAgNp5oGG0NrnHbkuPt3/OqtNvJr7lA5QpNIxu05G6CdBMPEGw+gqK4zOTwWIi98r99yBywfwiwF0zqQEDaCHwtd6H/lQIDAQAB";

    public static final int SDK_PAY_FLAG = 1;
    public static final int SDK_AUTH_FLAG = 2;

}
